<!doctype html>
<title>An upstream caret can be impossible to create</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
    [
        '<div contenteditable><table style="font-size: 20px;"><tbody>',
            '<tr><td>^foo</td></tr>',
            '<tr><td>bar|</td></tr>',
        '</tbody></table></div>',
    ],
    'fontSizeDelta 10px',
    [
        '<div contenteditable><table style="font-size: 20px;"><tbody>',
            '<tr><td style="font-size: 30px;">^foo</td></tr>',
            '<tr><td style="font-size: 30px;">bar|</td></tr>',
        '</tbody></table></div>',
    ]);
</script>
